<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TClipBoard类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="class_t_clip_board-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TClipBoard类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:abca89d9c1602065e9f6f1f1bd6762a6c"><td class="memItemLeft" align="right" valign="top"><a id="abca89d9c1602065e9f6f1f1bd6762a6c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TClipBoard</b> (clip_board_t *nativeObj)</td></tr>
<tr class="separator:abca89d9c1602065e9f6f1f1bd6762a6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1edf9369c940f23154e196cf5c5fb7ff"><td class="memItemLeft" align="right" valign="top"><a id="a1edf9369c940f23154e196cf5c5fb7ff"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TClipBoard</b> (const clip_board_t *nativeObj)</td></tr>
<tr class="separator:a1edf9369c940f23154e196cf5c5fb7ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a7b4c21bfac4fe52b94ba3dd0bba6e407"><td class="memItemLeft" align="right" valign="top"><a id="a7b4c21bfac4fe52b94ba3dd0bba6e407"></a>
static <a class="el" href="class_t_clip_board.html">TClipBoard</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (clip_board_t *nativeObj)</td></tr>
<tr class="separator:a7b4c21bfac4fe52b94ba3dd0bba6e407"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99d7f0db81ca45b627f497a0726dbcc5"><td class="memItemLeft" align="right" valign="top"><a id="a99d7f0db81ca45b627f497a0726dbcc5"></a>
static <a class="el" href="class_t_clip_board.html">TClipBoard</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const clip_board_t *nativeObj)</td></tr>
<tr class="separator:a99d7f0db81ca45b627f497a0726dbcc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5766919b294da85c0d2181c97e1a066b"><td class="memItemLeft" align="right" valign="top">static ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_clip_board.html#a5766919b294da85c0d2181c97e1a066b">SetText</a> (const char *text)</td></tr>
<tr class="separator:a5766919b294da85c0d2181c97e1a066b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af53d6d2b3aa390ff09dd5a3fd041cbb4"><td class="memItemLeft" align="right" valign="top">static const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_clip_board.html#af53d6d2b3aa390ff09dd5a3fd041cbb4">GetText</a> ()</td></tr>
<tr class="separator:af53d6d2b3aa390ff09dd5a3fd041cbb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a2371b9495fe6bdbf3a02351464752058"><td class="memItemLeft" align="right" valign="top"><a id="a2371b9495fe6bdbf3a02351464752058"></a>
clip_board_t *&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a2371b9495fe6bdbf3a02351464752058"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>剪切板接口。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="af53d6d2b3aa390ff09dd5a3fd041cbb4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af53d6d2b3aa390ff09dd5a3fd041cbb4">&#9670;&nbsp;</a></span>GetText()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char * TClipBoard::GetText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>从剪切板中获取文本(UTF8)数据。</p>
<dl class="section return"><dt>返回</dt><dd>返回文本数据。 </dd></dl>

</div>
</div>
<a id="a5766919b294da85c0d2181c97e1a066b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5766919b294da85c0d2181c97e1a066b">&#9670;&nbsp;</a></span>SetText()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TClipBoard::SetText </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置文本(UTF8)数据到剪切板。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>文本。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
